//
//  XXJNewViewController.m
//  不得姐
//
//  Created by 许小军 on 16/9/1.
//  Copyright © 2016年 wyzc. All rights reserved.
//

#import "XXJNewViewController.h"
#import "UIBarButtonItem+XXJBarButtonItem.h"
#import "XXJSubTableController.h"
@interface XXJNewViewController ()

@end

@implementation XXJNewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor grayColor];
    
    [self setNavBar];
}

-(void)setNavBar
{
    self.navigationItem.titleView=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"MainTitle"]];
    
    self.navigationItem.leftBarButtonItem=[UIBarButtonItem setNormalImage:[UIImage imageNamed:@"MainTagSubIcon"] SelectedImage:[UIImage imageNamed:@"MainTagSubIconClick"] addTarget:self action:@selector(leftBtn)];
    
    
}

-(void)leftBtn
{
    XXJSubTableController * subTable=[[XXJSubTableController alloc]init];
    [self.navigationController pushViewController:subTable animated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
